﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;

namespace IntelligentDecisioning.SharePoint.Definition.Lists
{
    /// <summary>
    /// 
    /// </summary>
    public class SharePointDocumentLibrary: SharePointList
    {
        #region Constants

        public static readonly Guid CHECKED_OUT_TO_GUID = new Guid("3881510a-4e4a-4ee8-b102-8ee8e2d0dd4b");
        public static readonly Guid CHECK_IN_COMMENT_GUID = new Guid("58014f77-5463-437b-ab67-eec79532da67");
        public static readonly Guid FILE_SIZE_DISPLAY_GUID = new Guid("78a07ba4-bda8-4357-9e0f-580d64487583");


        // Document library probably shouldnt extend sharepoint list as they are actually
        // different base types in sharepoint?
    
        // View Fields
        public const String CHECKED_OUT_TO = "CheckoutUser";
        public const String CHECK_IN_COMMENT = "_CheckinComment";
        public const String FILE_SIZE_DISPLAY = "FileSizeDisplay";
        /// <summary>
        /// Used to show the title of the item in the list with hyperlink but no ECB menu.
        /// NB the internal name is differnet to that for the same functionality in a sharepoint list
        /// </summary>
        public static new String TITLE_LINKED_TO_ITEM = "FileLeafRef";

        #endregion

        #region Constructors


        public SharePointDocumentLibrary(string listName)
            :base(listName)
        {
            base.TemplateType = SPListTemplateType.DocumentLibrary;
        }

        public SharePointDocumentLibrary()
            : this("Id Documents")
        {
        }

        #endregion

        #region Field mappings




        #endregion

    }
}
